package com.woniuxy.businessassembly.index;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.math.BigDecimal;

/**
 * @author kevin kwok
 * @create 2021-05-31 10:00
 */
@Data
@Document(indexName = "hotelinfo")
public class HotelInfoIndex {

    @Id
    private Integer hotelId;

    @Field(name = "hotel_name",searchAnalyzer = "ik_smart",analyzer = "ik_smart")
    private String hotelName;

    /**
     * 酒店电话
     */
    @Field(name = "hotel_tel")
    private String hotelTel;

    /**
     * 酒店地址
     */
    @Field(name = "hotel_addr")
    private String hotelAddr;

    /**
     * 酒店介绍
     */
    @Field(name = "hotel_desc")
    private String hotelDesc;

    /**
     * 客房数量
     */
    @Field(name = "hotel_number")
    private Integer hotelNumber;

    /**
     * 1豪华酒店。2快捷酒店。3商务酒店。4主题酒店。
     */
    @Field(name = "hotel_type")
    private Integer hotelType;

    /**
     * 经度
     */
    @Field(name = "longitude")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @Field(name = "latitude")
    private BigDecimal latitude;
}
